<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>在此处插入标题</title>
<head>
	<title>退货 - 物流管理系统</title>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<style media="all" type="text/css">
		@import "../../style/all.css";
		@import "../../style/jquery/ui.all.css";
	</style>
	<script type="text/javascript" src="../../script/jquery-1.3.2.min.js"></script>
	<script type="text/javascript" src="../../script/jquery-ui-personalized-1.6rc6.min.js"></script>
	<script type="text/javascript" src="../../script/date.js"></script>
	<script type="text/javascript" src='../../script/common.js'></script>
	<script type="text/javascript" src="../js/jquery-1.8.3.js"></script>
	<script type="text/javascript">
		$(function(){
			datepicker('.date-six');
			
			$("#exit").click(function(){	
				  var id = $("#productid").val();				
				  var unbecause = $("#unbecause").val();
				  var nubedate = $("#nubedate").val();
				  var operater = $("#operater").val();				
					$.ajax({
					   type:"post", 
					   url:"../../customer/addPro",
					   contentType:"application/json",					
					   data:JSON.stringify({"id": id,"unbecause":unbecause,"nubedate": nubedate,"operater":operater}),
					   success:function(result){
						   alert(result);
						   window.location.href="../../customer/getAllLorders";
						   },
					 
				  	 });
				});
		});

		
	</script>
</head>
<body style="background: none" >
	<div class="top-bar">
		<!--a href="#" class="button">取 消</a><a href="#" class="button">保 存</a-->
		<h1>退货</h1>
		<div class="breadcrumbs">
			<a href="../../index.html" target="_top">首页</a> /
			<a href="../index.html" target="_top">客户服务中心</a>
		</div>
	</div>
	<div class="select-bar"/>
<form name="frm8" method="post">
	<div class="table">
		<img src="../../style/img/bg-th-left.gif" width="8" height="7" alt="" class="left" />
		<img src="../../style/img/bg-th-right.gif" width="7" height="7" alt="" class="right" />
		<table class="listing form" cellpadding="0" cellspacing="0">
			<tr>
				<th class="full" colspan="4">退货</th>
			</tr>
			<tr>
				<td class="first">商品编号</td>
				<td><input type="text" value="${pro.productid}" id="productid" readonly="readonly" style="border: none;"/></td>
				<td>客户编号</td>
				<td class="last">${pro.customerid}</td>
			</tr>
			<tr>
				<td class="first">退货原因(*)</td>
				<td><input name="remark" type="text" class="text" id="unbecause" value="尺码不合"/></td>
				<td>要求退货日期(*)</td>
				<td class="last"><input name="orderformGenerateDate" type='text' class="date-six text" id="nubedate" readonly/></td>
			</tr>
			<tr>
				<td class="first">操作员(*)</td>
				<td><input name="operatorId" type="text" class="text" id="operater" /></td>
				<td></td>
				<td class="last"></td>
			</tr>

		</table>
		<div align="center" style="width:100%;">
			<input type="button" class="button" onclick="javascript:window.history.go(-1);" value="上一步"/>&nbsp;
			<input type="button" class="button" id="exit" value=" 退 货 "/>
		</div>
	</div>
</form>
</body>
</html>